package com.woniuxy.service.impl;

import com.woniuxy.entity.Staff;
import com.woniuxy.mapper.StaffMapper;
import com.woniuxy.service.StaffService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@RequiredArgsConstructor
public class StaffServiceImpl implements StaffService {

    @NonNull
    private StaffMapper staffMapper;


    @Override
    public Staff selectById(Long id) {

        return   staffMapper.selectByPrimaryKey(id);
    }
}
